export const TABLE_COLUMNS = [
  {
    label: '序号',
    key: 'index',
  },
  {
    label: '姓名',
    key: 'username',
    sortable: true,
  },
  {
    label: '手机号',
    key: 'mobile',
    sortable: true,
  },
  {
    label: '工号',
    key: 'workNumber',
    sortable: true,
  },
  {
    label: '聘用形式',
    key: 'inServiceStatus',
    sortable: true,
  },
  {
    label: '部门',
    key: 'departmentName',
    sortable: true,
  },
  {
    label: '入职时间',
    key: 'timeOfEntry',
    sortable: true,
  },
  {
    label: '是否在职',
    key: 'formOfEmployment',
    sortable: true,
  },
  {
    label: '状态',
    key: 'enableState',
    sortable: true,
  },
  {
    label: '操作',
    fixed: 'right',
    width: 300,
    // more conf here
    children: [
      {
        type: 'btn', // tag icon ...
        label: '查看',
        key: 'detail',
        props: {
          type: 'text',
          size: 'small',
        },
      },
      {
        type: 'btn', // tag icon ...
        label: '转正',
        key: 'regular',
        props: {
          type: 'text',
          size: 'small',
        },
      },
      {
        type: 'btn', // tag icon ...
        label: '调岗',
        key: 'transfer',
        props: {
          type: 'text',
          size: 'small',
        },
      },
      {
        type: 'btn', // tag icon ...
        label: '离职',
        key: 'dimission',
        props: {
          type: 'text',
          size: 'small',
        },
      },
      {
        type: 'btn', // tag icon ...
        label: '角色',
        key: 'role',
        props: {
          type: 'text',
          size: 'small',
        },
      },
      {
        type: 'btn', // tag icon ...
        label: '删除',
        key: 'delete',
        props: {
          type: 'text',
          size: 'small',
        },
      },
    ],
  },
];

// detail 查看
// regular 转正
// transfer 调岗
// dimission 离职
// role 角色
// delete 删除
export const AUTHORITY = {
  coAdmin: ['detail', 'role'],
  user: ['detail', 'regular', 'transfer', 'dimission', 'role'],
  admin: ['detail', 'regular', 'transfer', 'dimission', 'role', 'delete'],
};
